package com.charles.seckillapi.domain;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Charles-H
 * 
 * 日志表
 */
public class SysLog implements Serializable {
    
    private static final long serialVersionUID = 1L;

    /**
     * 日志id
     */
    private String log_id;

    /**
     * 客户id
     */
    private Long user_id;

    /**
     * 日志类型 (申请 apply; 登录 login; 登出 exit; 订单 order; 其它 other)
     */
    private String log_type;

    /**
     * 日志内容
     */
    private String msg;

    /**
     * 发生时间
     */
    private Date create_time;

    public SysLog() {
    }

    public SysLog(String log_id, Long user_id, String log_type, String msg, Date create_time) {
        this.log_id = log_id;
        this.user_id = user_id;
        this.log_type = log_type;
        this.msg = msg;
        this.create_time = create_time;
    }

    public String getLog_id() {
        return log_id;
    }

    public void setLog_id(String log_id) {
        this.log_id = log_id;
    }

    public Long getUser_id() {
        return user_id;
    }

    public void setUser_id(Long user_id) {
        this.user_id = user_id;
    }

    public String getLog_type() {
        return log_type;
    }

    public void setLog_type(String log_type) {
        this.log_type = log_type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    @Override
    public String toString() {
        return "SysLog{" +
                "log_id='" + log_id + '\'' +
                ", user_id=" + user_id +
                ", log_type='" + log_type + '\'' +
                ", msg='" + msg + '\'' +
                ", create_time=" + create_time +
                '}';
    }
}
